package climbingHills;

import java.util.ArrayList;


@SuppressWarnings({ "serial", "hiding" })
public class Hill<TrackPoint> extends ArrayList<TrackPoint>{
	
	@SuppressWarnings("null")
	public Hill<TrackPoint> createHill(Hill<TrackPoint> h){
		Hill<TrackPoint> helpH = null;
		for (int i = 0; i < h.size(); i++){
			helpH.add(h.get(i));
			
		}
		
		return h;
		
	}
	
	public TrackPoint getLast(){
		int i;
		i = this.size();
		return this.get(i-1);
	}
	
	
}
